import request from '@/utils/request'

export function getCustomerInfo(data) {
  return request({
    url: '/customer/getCustomerInfo',
    method: 'post',
    data
  })
}

export function getCustomerInfoByAccounts(data) {
  return request({
    url: '/customer/getCustomerInfoByAccounts?accounts=' + data,
    method: 'post',
  })
}

export function updateCustomerInfoByAccounts(data) {
  return request({
    url: '/customer/updateCustomerInfoByAccounts',
    method: 'post',
    data
  })
}

export function addCustomer(data) {
  return request({
    url: '/customer/addCustomer',
    method: 'post',
    data
  })
}

export function deleteCustomer(data) {
  return request({
    url: '/customer/deleteCustomer?accounts=' + data,
    method: 'post',
  })
}